package com.irs.irsforum.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.irs.irsforum.entity.Problem;
import com.irs.irsforum.mapper.ProblemMapper;
import com.irs.irsforum.service.IProblemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author yihuili
 * @since 2020-02-13
 */
@Service
public class ProblemServiceImpl extends ServiceImpl<ProblemMapper, Problem> implements IProblemService {

    @Autowired
    ProblemMapper problemMapper;

    @Override
    public List<Problem> getProblemList(Long subjectId) {
        List<Problem> problemList = problemMapper.getProblemBySubject(subjectId);
        return problemList;
    }
}
